package com.tencent.sr.iris.activity.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 *
 */
@AllArgsConstructor
@Getter
public enum TaskBatchDateIsParticipatedEnum {
    YES("YES", "已参加"),
    NO("NO", "未参加"),
    LIMITED("LIMITED", "已超限"),
    ;

    private final String code;
    private final String desc;

    public static TaskBatchDateIsParticipatedEnum getByCode(String code) {
        for (TaskBatchDateIsParticipatedEnum anEnum : TaskBatchDateIsParticipatedEnum.values()) {
            if (anEnum.getCode().equals(code)) {
                return anEnum;
            }
        }
        return null;
    }
}
